package org.jeecg.modules.oms.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;

/**
 * 询单规则值表
 */
@Data
@TableName("oms_inquiry_rule_value")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class OmsInquiryRuleValue implements Serializable {
    
    private static final long serialVersionUID = 1L;
    
    /**
     * 主键ID
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键ID")
    private String id;
    
    /**
     * 规则ID
     */
    @Excel(name = "规则ID", width = 15)
    @ApiModelProperty(value = "规则ID")
    private String ruleId;
    
    /**
     * 规则值
     */
    @Excel(name = "规则值", width = 15)
    @ApiModelProperty(value = "规则值")
    private String value;
    
    /**
     * 排序号
     */
    @Excel(name = "排序号", width = 15)
    @ApiModelProperty(value = "排序号")
    private Integer sortNo;
    
    /**
     * 启用状态：0禁用，1启用
     */
    @Excel(name = "启用状态", width = 15, dicCode = "enable_status")
    @Dict(dicCode = "enable_status")
    @ApiModelProperty(value = "启用状态：0禁用，1启用")
    private Integer enabled;
    
    /**
     * 租户ID
     */
    @ApiModelProperty(value = "租户ID")
    private String tenantId;
    
    /**
     * 删除标志：0正常，1删除
     */
    @ApiModelProperty(value = "删除标志：0正常，1删除")
    private Integer delFlag;
    
    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    private String createBy;
    
    /**
     * 创建时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    
    /**
     * 更新人
     */
    @ApiModelProperty(value = "更新人")
    private String updateBy;
    
    /**
     * 更新时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
}
